


class MyException extends Exception{
    public MyException(String message){
        super(message);
    }
}

class MyException2 extends RuntimeException{
    public MyException2(String message){
        super(message);
    }
}

public class Test3 {
    public static void func1(int x)throws MyException2{
            if (x==0){
                throw new MyException2("hehe");
            }


    }


    public static void main(String[] args) {
        try {
            func1(0);
        }catch (MyException2 e){
            e.printStackTrace();
        }

    }
}
